<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use App\Role;
use Illuminate\Database\Eloquent\SoftDeletes;
class Admin extends Model
{
    use SoftDeletes;
    protected $guarded=[];
    protected $appends=['role'];
    public function getRoleAttribute(){
        return Role::select('role_name')->find($this->role_id);
    }
}
